#!/usr/bin/env bash

# 注册模块镜像
su -c "npm set registry https://registry.npm.taobao.org" -l devilbox
# node-gyp 编译依赖的 node 源码镜像
su -c "npm set disturl https://npm.taobao.org/dist" -l devilbox
# node-sass 二进制包镜像
su -c "npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass" -l devilbox
# electron 二进制包镜像
su -c "npm set electron_mirror https://npm.taobao.org/mirrors/electron" -l devilbox
# puppeteer 二进制包镜像
su -c "npm set puppeteer_download_host https://npm.taobao.org/mirrors" -l devilbox
# chromedriver 二进制包镜像
su -c "npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver" -l devilbox
# operadriver 二进制包镜像
su -c "npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver" -l devilbox
# phantomjs 二进制包镜像
su -c "npm set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs" -l devilbox
# selenium 二进制包镜像
su -c "npm set selenium_cdnurl https://npm.taobao.org/mirrors/selenium" -l devilbox
# node-inspector 二进制包镜像
su -c "npm set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector" -l devilbox